import React, { Suspense } from 'react';
import { Link, useRoutes } from 'react-router-dom'

import './App.css';
import routes from './router'
import Demo01 from './views/demo/index01'

function App() {
  console.log(process.env.REACT_APP_BASE_URL,'ppp')
  return (
    <div className="App">
      <h2>hhaha</h2>
      <Demo01 name='lem' />
      <Link to="/mine">mine</Link>
      <Suspense fallback="">
        <div>{ useRoutes(routes) }</div>
      </Suspense>
    </div>
  );
}

export default App;
